FROM java:8
VOLUME /tmp
COPY  ./target/*.jar app.jar
ENV PORT 9001
EXPOSE $PORT
ENTRYPOINT ["java","-Dserver.port=${PORT}","-Dspring.profiles.active=prod","-jar","/app.jar"]

